Optimal. Leaf size=223 \[ -\frac{\sqrt [6]{b} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 a^{7/6}}+\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{1}{a x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.479936, antiderivative size = 223, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.538, Rules used = {325, 295, 634, 618, 204, 628, 205} \[ -\frac{\sqrt [6]{b} \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 a^{7/6}}+\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}-2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt{3} \sqrt [6]{a}+2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{1}{a x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 325
Rule 295
Rule 634
Rule 618
Rule 204
Rule 628
Rule 205
Rubi steps
\begin{align*} \int \frac{1}{x^2 \left (a+b x^6\right )} \, dx &=-\frac{1}{a x}-\frac{b \int \frac{x^4}{a+b x^6} \, dx}{a}\\ &=-\frac{1}{a x}-\frac{\sqrt [3]{b} \int \frac{-\frac{\sqrt [6]{a}}{2}+\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{3 a^{7/6}}-\frac{\sqrt [3]{b} \int \frac{-\frac{\sqrt [6]{a}}{2}-\frac{1}{2} \sqrt{3} \sqrt [6]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{3 a^{7/6}}-\frac{\sqrt [3]{b} \int \frac{1}{\sqrt [3]{a}+\sqrt [3]{b} x^2} \, dx}{3 a}\\ &=-\frac{1}{a x}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 a^{7/6}}-\frac{\sqrt [6]{b} \int \frac{-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{4 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \int \frac{\sqrt{3} \sqrt [6]{a} \sqrt [6]{b}+2 \sqrt [3]{b} x}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{4 \sqrt{3} a^{7/6}}-\frac{\sqrt [3]{b} \int \frac{1}{\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{12 a}-\frac{\sqrt [3]{b} \int \frac{1}{\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2} \, dx}{12 a}\\ &=-\frac{1}{a x}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 a^{7/6}}-\frac{\sqrt [6]{b} \log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}-\frac{\sqrt [6]{b} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1-\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{6 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1+\frac{2 \sqrt [6]{b} x}{\sqrt{3} \sqrt [6]{a}}\right )}{6 \sqrt{3} a^{7/6}}\\ &=-\frac{1}{a x}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{3 a^{7/6}}+\frac{\sqrt [6]{b} \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{\sqrt [6]{b} \tan ^{-1}\left (\sqrt{3}+\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )}{6 a^{7/6}}-\frac{\sqrt [6]{b} \log \left (\sqrt [3]{a}-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}+\frac{\sqrt [6]{b} \log \left (\sqrt [3]{a}+\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{b} x^2\right )}{4 \sqrt{3} a^{7/6}}\\ \end{align*}
Mathematica [A] time = 0.0430273, size = 189, normalized size = 0.85 \[ -\frac{\sqrt{3} \sqrt [6]{b} x \log \left (-\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )-\sqrt{3} \sqrt [6]{b} x \log \left (\sqrt{3} \sqrt [6]{a} \sqrt [6]{b} x+\sqrt [3]{a}+\sqrt [3]{b} x^2\right )+4 \sqrt [6]{b} x \tan ^{-1}\left (\frac{\sqrt [6]{b} x}{\sqrt [6]{a}}\right )-2 \sqrt [6]{b} x \tan ^{-1}\left (\sqrt{3}-\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}\right )+2 \sqrt [6]{b} x \tan ^{-1}\left (\frac{2 \sqrt [6]{b} x}{\sqrt [6]{a}}+\sqrt{3}\right )+12 \sqrt [6]{a}}{12 a^{7/6} x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.03, size = 169, normalized size = 0.8 \begin{align*}{\frac{b\sqrt{3}}{12\,{a}^{2}} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}+\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }-{\frac{1}{6\,a}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}+\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-{\frac{1}{3\,a}\arctan \left ({x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-{\frac{b\sqrt{3}}{12\,{a}^{2}} \left ({\frac{a}{b}} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}-\sqrt{3}\sqrt [6]{{\frac{a}{b}}}x+\sqrt [3]{{\frac{a}{b}}} \right ) }-{\frac{1}{6\,a}\arctan \left ( 2\,{x{\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-\sqrt{3} \right ){\frac{1}{\sqrt [6]{{\frac{a}{b}}}}}}-{\frac{1}{ax}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.81757, size = 851, normalized size = 3.82 \begin{align*} \frac{4 \, \sqrt{3} a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} a \sqrt{-\frac{a^{6} x \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} + a^{5} \left (-\frac{b}{a^{7}}\right )^{\frac{2}{3}} - b x^{2}}{b}} \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} - \frac{1}{3} \, \sqrt{3}\right ) + 4 \, \sqrt{3} a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2}{3} \, \sqrt{3} a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} + \frac{2}{3} \, \sqrt{3} a \sqrt{\frac{a^{6} x \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} - a^{5} \left (-\frac{b}{a^{7}}\right )^{\frac{2}{3}} + b x^{2}}{b}} \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} + \frac{1}{3} \, \sqrt{3}\right ) - a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \log \left (a^{6} x \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} - a^{5} \left (-\frac{b}{a^{7}}\right )^{\frac{2}{3}} + b x^{2}\right ) + a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \log \left (-a^{6} x \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} - a^{5} \left (-\frac{b}{a^{7}}\right )^{\frac{2}{3}} + b x^{2}\right ) - 2 \, a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \log \left (a^{6} \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} + b x\right ) + 2 \, a x \left (-\frac{b}{a^{7}}\right )^{\frac{1}{6}} \log \left (-a^{6} \left (-\frac{b}{a^{7}}\right )^{\frac{5}{6}} + b x\right ) - 12}{12 \, a x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.364808, size = 29, normalized size = 0.13 \begin{align*} \operatorname{RootSum}{\left (46656 t^{6} a^{7} + b, \left ( t \mapsto t \log{\left (- \frac{7776 t^{5} a^{6}}{b} + x \right )} \right )\right )} - \frac{1}{a x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]